package com.appsl.digitalparking;

import com.appsl.manager.Redirection;

import android.os.Bundle;
import android.app.Activity;
import android.view.KeyEvent;
import android.view.Menu;
import android.view.View;

public class PisoActivity extends Activity {

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_piso);
	}

	@Override
	public boolean onCreateOptionsMenu(Menu menu) {
		// Inflate the menu; this adds items to the action bar if it is present.
		getMenuInflater().inflate(R.menu.piso, menu);
		return true;
	}
	
	public void goToParkingLot(View view){
		Redirection.goToParkingLot(this);
	}

	@Override
	public boolean onKeyDown(int keyCode, KeyEvent event) 
	{
	    if ((keyCode == KeyEvent.KEYCODE_BACK)) 
			Redirection.goToDetalleLugar(this, "");
	    
	    return super.onKeyDown(keyCode, event);
	}
}